package org.ccunix.eshop.controller;

import org.ccunix.eshop.service.MemberLevelservice;

public class MemberLevelcontroller {
		public int add(String levelName, String favourable){
			MemberLevelservice memberLevelservice = new MemberLevelservice();
			int row = memberLevelservice.add(levelName,favourable);
			return row;
		}

		public int update(String levelName, String favourable, String id) {
			MemberLevelservice memberLevelservice = new MemberLevelservice();
			int row = memberLevelservice.update(levelName,favourable,id);
			return row;
		}

		public int delete(String id) {
			MemberLevelservice memberLevelservice = new MemberLevelservice();
			int row = memberLevelservice.detele(id);
			return row;
		}

		public void query() {
			MemberLevelservice memberLevelservice = new MemberLevelservice();
			memberLevelservice.query();
		}

}
